/**
 * 
 */
package com.bbva.gptf.back.transformador;

import org.springframework.core.convert.converter.Converter;

import com.bbva.gptf.back.dominio.Tgpt030DetOrdCap;
import com.bbva.gptf.back.dominio.Tgpt030DetOrdCapPK;
import com.bbva.gptf.dto.bean.DetalleOrden;

/**
 * @author mtellezg
 * 
 */
public class TransformadorTgpt030DetOrdCap implements
		Converter<DetalleOrden, Tgpt030DetOrdCap> {
	Tgpt030DetOrdCap tgptDetOrdCap;

	@Override
	public Tgpt030DetOrdCap convert(final DetalleOrden source) {
		// TODO Auto-generated method stub
		tgptDetOrdCap = new Tgpt030DetOrdCap();

		tgptDetOrdCap.setCtTitulo(source.getCtTitulo());
		tgptDetOrdCap.setImMonto(source.getImMonto());
		tgptDetOrdCap.setPcIntegracion(source.getPcIntegracion());
		tgptDetOrdCap.setPcTasa(source.getPcTasa());
		tgptDetOrdCap.setCtTituloPost(source.getCtTituloPost());
		tgptDetOrdCap.setToImportePost(source.getToImportePost());
		tgptDetOrdCap.setPcIntegraPost(source.getPcIntegraPost());
		tgptDetOrdCap.setPcTasaPost(source.getPcTasaPost());
		tgptDetOrdCap.setTmUmo(source.getTmUmo());
		tgptDetOrdCap.setFhUmo(source.getFhUmo());
		tgptDetOrdCap.setCdUsuarioUmo(source.getCdUsuarioUmo());

		final Tgpt030DetOrdCapPK id = new Tgpt030DetOrdCapPK(
				source.getCdOrden(), source.getCdContrato());
		tgptDetOrdCap.setId(id);

		return tgptDetOrdCap;

	}

}
